package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ActivitycodebatchContinuationMapper;
import com.ktgj.service.domain.ActivitycodebatchContinuation;
import com.ktgj.service.service.IActivitycodebatchContinuationService;

/**
 * 活动码续码记录			
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ActivitycodebatchContinuationServiceImpl implements IActivitycodebatchContinuationService 
{
    @Autowired
    private ActivitycodebatchContinuationMapper activitycodebatchContinuationMapper;

    /**
     * 查询活动码续码记录			

     * 
     * @param recordId 活动码续码记录			
ID
     * @return 活动码续码记录			

     */
    @Override
    public ActivitycodebatchContinuation selectActivitycodebatchContinuationById(Long recordId)
    {
        return activitycodebatchContinuationMapper.selectActivitycodebatchContinuationById(recordId);
    }

    /**
     * 查询活动码续码记录			
列表
     * 
     * @param activitycodebatchContinuation 活动码续码记录			

     * @return 活动码续码记录			

     */
    @Override
    public List<ActivitycodebatchContinuation> selectActivitycodebatchContinuationList(ActivitycodebatchContinuation activitycodebatchContinuation)
    {
        return activitycodebatchContinuationMapper.selectActivitycodebatchContinuationList(activitycodebatchContinuation);
    }

    /**
     * 新增活动码续码记录			

     * 
     * @param activitycodebatchContinuation 活动码续码记录			

     * @return 结果
     */
    @Override
    public int insertActivitycodebatchContinuation(ActivitycodebatchContinuation activitycodebatchContinuation)
    {
        activitycodebatchContinuation.setCreateTime(DateUtils.getNowDate());
        return activitycodebatchContinuationMapper.insertActivitycodebatchContinuation(activitycodebatchContinuation);
    }

    /**
     * 修改活动码续码记录			

     * 
     * @param activitycodebatchContinuation 活动码续码记录			

     * @return 结果
     */
    @Override
    public int updateActivitycodebatchContinuation(ActivitycodebatchContinuation activitycodebatchContinuation)
    {
        return activitycodebatchContinuationMapper.updateActivitycodebatchContinuation(activitycodebatchContinuation);
    }

    /**
     * 批量删除活动码续码记录			

     * 
     * @param recordIds 需要删除的活动码续码记录			
ID
     * @return 结果
     */
    @Override
    public int deleteActivitycodebatchContinuationByIds(Long[] recordIds)
    {
        return activitycodebatchContinuationMapper.deleteActivitycodebatchContinuationByIds(recordIds);
    }

    /**
     * 删除活动码续码记录			
信息
     * 
     * @param recordId 活动码续码记录			
ID
     * @return 结果
     */
    @Override
    public int deleteActivitycodebatchContinuationById(Long recordId)
    {
        return activitycodebatchContinuationMapper.deleteActivitycodebatchContinuationById(recordId);
    }
}
